package com.itcast.bulls.stock.deal.dao.trade;

import com.itcast.bulls.stock.entity.user.AccountWarnSetting;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IAccountWarnSettingDao {


    AccountWarnSetting getByAccountAndStock(@Param("accountId") long accountId, @Param("stockId") long stockId);

    void insert(AccountWarnSetting accountWarnSetting);

    void update(AccountWarnSetting accountWarnSetting);

    List<AccountWarnSetting> getAll();

}
